home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / graphics / gnuplot / makefile.286 < prev    next >
Makefile  |  1993-05-11  |  4KB  |  160 lines

  1. # make file for Borland C++ 3.x
  2. #   and Phar Lap LITE286 DOS extender
  3. # both LITE286 bin and BORLANDC bin directories must be on the path
  4.  
  5. # where to place gnuplot.gih helpfile
  6. HELPFILE = gnuplot.gih
  7. # location of LITE286 Pharlap Extender
  8. LITE=c:\lite286
  9. LITECC=$(LITE)\bin\bcc286
  10. # location of Turbo C compiler
  11. TC = c:\borlandc
  12. # name of C compiler
  13. CC = bcc
  14. #CC = tcc
  15. # location of TLINK.EXE and TCC.EXE or BCC.EXE
  16. BIN = $(TC)\bin\\
  17. #BIN =
  18. # location of BGI files,
  19. # change this line if not in TC directory, i.e. $(TC)\bgi
  20. BGI = $(TC)\bgi
  21.  
  22. # -c means don't link, -f means emulate 8087 if not present
  23. # -ml says large model 
  24. # -M means produce link map
  25. # -y means include line numbers for debugger
  26. # -v means include debug info
  27. # -w- means ignore warnings and do not report them
  28. # -DREADLINE to use the history/line editing capability. If you want this 
  29. #    capability add -DREADLINE to CFLAGS
  30. CFLAGS = -Ff=256 -c -f -ml -w- -I$(TC)\include -DMSDOS -DPC -DREADLINE
  31. TERMFLAGS =
  32.  
  33. OBJ1 =  bitmap.obj command.obj contour.obj eval.obj graphics.obj graph3d.obj
  34. OBJ2 =    help.obj internal.obj misc.obj parse.obj plot.obj readline.obj
  35. OBJ3 =    scanner.obj setshow.obj specfun.obj standard.obj term.obj util.obj
  36. OBJ4 =    version.obj gnubin.obj binary.obj
  37. BGIFILES = cga.bgi egavga.bgi herc.bgi att.bgi
  38.  
  39. OBJS =    $(OBJ1) $(OBJ2) $(OBJ3) $(OBJ4)
  40.  
  41. CSOURCE5 = term\aed.trm term\cgi.trm term\dumb.trm term\dxy.trm \
  42.     term\eepic.trm term\epson.trm term\fig.trm term\hp26.trm \
  43.     term\hp2648.trm term\hpgl.trm term\hpljii.trm 
  44. CSOURCE6 = term\impcodes.h term\imagen.trm term\object.h \
  45.     term\iris4d.trm term\kyo.trm term\latex.trm term\pc.trm 
  46. CSOURCE7 = term\post.trm term\qms.trm term\regis.trm term\sun.trm \
  47.     term\t410x.trm term\tek.trm term\unixpc.trm term\unixplot.trm \
  48.     term\v384.trm term\x11.trm
  49. CSOURCE8 = contour.c specfun.c gnubin.c binary.c
  50.  
  51. all: gnuplot.exe $(HELPFILE) demo\bf_test.exe $(BGIFILES)
  52.  
  53. # use response file to avoid command-line overflow
  54. gnuplot.exe: $(OBJS)
  55.     $(BIN)tlink @&&!
  56. $(LITE)\bc3\lib\c0pl +
  57. bitmap command eval graphics graph3d help internal misc parse +
  58. plot scanner setshow specfun standard term util version contour +
  59. gnubin binary +
  60. readline +
  61. $(LITE)\bc3\lib\emu286.lib +
  62. ,gnuplot,gnuplot, +
  63. $(TC)\lib\emu +
  64. $(TC)\lib\mathl +
  65. $(LITE)\bc3\lib\graph286.lib +
  66. $(LITE)\bc3\lib\phapi +
  67. $(LITE)\bc3\lib\bcl286, +
  68. gnuplot.def
  69. !
  70.  
  71.  
  72. # default rules
  73.  
  74. .c.obj:
  75.     $(LITECC) $(CFLAGS) $<
  76.  
  77. bitmap.obj: bitmap.c bitmap.h plot.h
  78.  
  79. command.obj: command.c plot.h setshow.h help.h
  80.     $(LITECC) $(CFLAGS) command.c
  81.  
  82. contour.obj: contour.c plot.h
  83.  
  84. eval.obj: eval.c plot.h
  85.  
  86. graphics.obj: graphics.c plot.h setshow.h
  87.  
  88. graph3d.obj: graphics.c plot.h setshow.h
  89.  
  90. help.obj: help.c plot.h help.h
  91.  
  92. internal.obj: internal.c plot.h
  93.  
  94. misc.obj: misc.c plot.h setshow.h help.h
  95.  
  96. parse.obj: parse.c plot.h
  97.     $(LITECC) $(CFLAGS) parse.c
  98.  
  99. plot.obj: plot.c plot.h setshow.h
  100.     $(LITECC) $(CFLAGS) plot.c
  101.  
  102. readline.obj: readline.c
  103.  
  104. scanner.obj: scanner.c plot.h
  105.  
  106. setshow.obj: setshow.c plot.h setshow.h
  107.  
  108. specfun.obj: specfun.c
  109.  
  110. standard.obj: standard.c plot.h
  111.  
  112. # the CSOURCE? dependencies are not up to date (but who cares)
  113. term.obj: term.c term.h plot.h setshow.c bitmap.h $(CSOURCE5) $(CSOURCE6) $(CSOURCE7)
  114.     $(LITECC) $(CFLAGS) $(TERMFLAGS) -Iterm term.c
  115.  
  116. util.obj: util.c plot.h
  117.  
  118. version.obj: version.c
  119.  
  120. # convert gnuplot.doc to gnuplot.gih
  121. $(HELPFILE): doc2gih.exe docs\gnuplot.doc
  122.     doc2gih docs\gnuplot.doc $(HELPFILE)
  123.  
  124. doc2gih.exe: docs\doc2gih.c
  125.     $(BIN)$(CC) -w- -ml -I$(TC)\include -L$(TC)\lib docs\doc2gih.c
  126.  
  127. demo\bf_test.exe: bf_test.c binary.obj
  128.     $(BIN)$(CC) -edemo\bf_test.exe -w- -ml -I$(TC)\include -L$(TC)\lib bf_test.c binary.obj
  129.  
  130. # copy Borland Graphics Interface files to current directory
  131. cga.bgi: $(BGI)\cga.bgi
  132.     copy $(BGI)\$< $<
  133.  
  134. egavga.bgi: $(BGI)\egavga.bgi
  135.     copy $(BGI)\$< $<
  136.  
  137. herc.bgi: $(BGI)\herc.bgi
  138.     copy $(BGI)\$< $<
  139.  
  140. att.bgi: $(BGI)\att.bgi
  141.     copy $(BGI)\$< $<
  142.  
  143. # clean target - remove all temp files, but leave executable intact
  144. # needed when changing configuration (model or overlaying)
  145.  
  146. clean:
  147.     del *.obj
  148.     del gnuplot.map
  149.     del doc2gih.exe
  150.  
  151. # realclean target - remove all files created by the makefile
  152.  
  153. realclean: clean
  154.     del gnuplot.exe
  155.     del gnuplot.gih
  156.     del demo\bf_test.exe
  157.     del demo\binary1
  158.     del demo\binary2
  159.     del demo\binary3
  160.